function autocomplet() {
    var min_length = 0;
    var keyword = $('#kab').val();
    if (keyword.length >= min_length) {
        $.ajax({
            url: 'http://semuaberbagi.com/function/autocompleterefresh.php',
            type: 'POST',
            data: {keyword: keyword},
            success: function(data) {
                $('#kab_list').show();
                $('#kab_list').html(data);
            }
        });
    } else {
        $('#kab_list').hide();
    }
}

function set_item(item) {
    $('#kab').val(item);
    $('#kab_list').hide();
}